package cn.itcast.mapper;

import cn.itcast.pojo.Setmeal;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author: peterChen
 * @date: 2019/8/13 20:31
 * @description: TODO
 * @version: 1.0
 */
public interface SetmealMapper {
    public void setSetmealAndCheckGroup(@Param("list") List<Map> list);

    public void add(Setmeal setmeal);

    public Page selectByCondition(@Param("queryString") String queryString);

    public Setmeal findSetmealById(@Param("id") Integer id);

    public List<Integer> findCheckgroupIdsBySetmealId(@Param("id")Integer id);

    public void deleteAssociation(@Param("id") Integer id);

    public void edit(Setmeal setmeal);

    public void delete(@Param("id") Integer id);

    public List<Setmeal> getSetmeal();

    public Setmeal findById(@Param("id")Integer id);

    public List<Map<String, Object>> findSetmealCount();


    public List<Map<String, Object>> findMemberCountBySex();
}
